package org.example;


import lombok.Data;

import java.util.Objects;

/**
 * Created by boge on 2024/11/23.
 */
@Data
public class TaobaoOrder {
    private String shopName;// 店铺名称
    private String diedLine;// 剩余时间
    private Double g;// 克重
    private String sendTime;// 发货时间
    private String orderId;// 订单ID
    private Double actualFee;// 实付价格
    private Double original;// 原价
    private Double realTotal;// 真实价格
    private Double postFees;// 运费

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TaobaoOrder that = (TaobaoOrder) o;
        return Objects.equals(shopName, that.shopName) && Objects.equals(diedLine, that.diedLine);
    }

    @Override
    public int hashCode() {
        return Objects.hash(shopName, diedLine);
    }
}
